export function removeEmptyParams<T extends Record<string, any>>(obj: T): Partial<T> {
  const result: Partial<T> = {};
  (Object.keys(obj) as Array<keyof T>).forEach(key => {
    const value = obj[key];
    if (value !== '' && value !== undefined && value !== null) {
      result[key] = value;
    }
  });
  return result;
} 